const icons = import.meta.glob('@/assets/svgs/**/*.svg', {
  eager: true,
  import: 'default'
})

const iconsLocal = Object.entries(icons).map((el: any) => {
  el[0] = el[0].split('.svg')[0]
  el[0] = el[0].replace('/src/assets/svgs/', '')
  el[0] = el[0].replace('/', '-')

  if (el[0].includes('/')) {
    el[0] = el[0].replace('/', '-')
  }

  return 'svg-icon:' + el[0]
})

export {
  iconsLocal
}
